home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7024 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: news.sprintlink.net!rockyd!cmcl2!schonberg!dewar
  2. From: dewar@cs.nyu.edu (Robert Dewar)
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
  4. Subject: Re: C/C++ knocks the crap out of Ada
  5. Date: 21 Feb 1996 07:46:03 -0500
  6. Organization: Courant Institute of Mathematical Sciences
  7. Message-ID: <dewar.824906485@schonberg>
  8. References: <00001a73+00002504@msn.com> <4etcmm$lpd@nova.dimensional.com>     <312515DF.7D3B@cmlj.demon.co.uk> <4gad29$ddp@druid.borland.com>     <4gb4r3$psg@qualcomm.com> <eg4tslzr18.fsf@trost.ii.uib.no>
  9. NNTP-Posting-Host: schonberg.cs.nyu.edu
  10. X-Newsreader: NN version 6.5.0 (NOV)
  11.  
  12. Ketil asks
  13.  
  14. "I'm certainly not qualified to parttake in this fla^H^H^Hheated debate
  15. about Ada vs. C++ -- however, I believe Booch (in "Object oriented
  16. analysis and design") cites an example program that shrunk 90% when
  17. recoded into C++ from Ada.  Question is, is this typical?  And if so,
  18. is it easier to read/maintain 100K lines of Ada than 10K lines C++?"
  19.  
  20. It's easy to get confused in this debate (even for the qualified :-)
  21. but you are suffering from overloading confusion. The language we discuss
  22. these days is Ada 95. When you see Ada with no further qualification in
  23. this newsgroup, you have to scratch your head and figure out if the author
  24. means Ada 83 or Ada 95, and if this is not clear ask!
  25.  
  26. In this case, Booch is comparing Ada 83 to C++, and the reduction in size
  27. comes from two sources. First, the rewriting itself cleaned things up, the
  28. original Ada 83 could definitely be reduced in size. Secondly, and more
  29. importantly, the C++ version uses type extension and inheritance. These
  30. features were not available in Ada 83, but are now available in Ada 95.
  31.  
  32. At NYU, as part of the IAT work, we looked at the Booch components in both
  33. Ada 83 and C++, and concluded that a full implementation of these components
  34. in Ada 95 would be about the same size as the implementation in C++, while
  35. retaining the usual advantages of Ada 95 (greater safety and improved
  36. readability).
  37.  
  38. It will help in this newsgroup if everyone makes sure to say Ada 83 when they
  39. mean Ada 83!
  40.  
  41.